package businessdelegate;

/**
 * @Author: linKe
 * @Date: 2022/1/14 21:54
 * @FileName: Client
 * @version: 1.0
 * @Description: 客户端对象
 *
 */
public class Client {
    /**
     * 业务委托对象
     */
    private BusinessDelegate businessDelegate;

    public Client(BusinessDelegate businessDelegate) {
        this.businessDelegate = businessDelegate;
    }

    public void doTask() {
        // 调用委托任务
        businessDelegate.doTask();
    }
}
